package cate.common.table.activity.brightmythequipment.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.brightmythequipment.row.BrightMythBaseRow;

/**
 * @author liuyunke
 * @program: cate-game
 * @create
 * @description:
 */
public class BrightMythBaseSheet extends ESheet<BrightMythBaseRow> {
    @Override
    public String getSheetName() {
        return "基础配置";
    }

    public BrightMythBaseRow getRowByFuncIdAndConfigId(int funcId, int configId) {
        for (BrightMythBaseRow row :
                list) {
            if (row.funcId == funcId && row.configId == configId) {
                return row;
            }
        }
        return null;
    }

    public BrightMythBaseRow getRowByFuncId(int funcId) {
        for (BrightMythBaseRow row :
                list) {
            if (row.funcId == funcId) {
                return row;
            }
        }
        return null;
    }
}
